package com.zhonghui.kf.mapper;

import java.util.List;
import com.zhonghui.kf.domain.ProcurementAnswer;

/**
 * 客服问答Mapper接口
 * 
 * @author y
 * @date 2023-11-29
 */
public interface ProcurementAnswerMapper 
{
    /**
     * 查询客服问答
     * 
     * @param id 客服问答主键
     * @return 客服问答
     */
    public ProcurementAnswer selectProcurementAnswerById(Long id);

    public ProcurementAnswer selectProcurementAnswer(ProcurementAnswer procurementAnswer);

    /**
     * 查询客服问答列表
     * 
     * @param procurementAnswer 客服问答
     * @return 客服问答集合
     */
    public List<ProcurementAnswer> selectProcurementAnswerList(ProcurementAnswer procurementAnswer);

    /**
     * 新增客服问答
     * 
     * @param procurementAnswer 客服问答
     * @return 结果
     */
    public int insertProcurementAnswer(ProcurementAnswer procurementAnswer);


    public int insertBatch(List<ProcurementAnswer> procurementAnswer);
    /**
     * 修改客服问答
     * 
     * @param procurementAnswer 客服问答
     * @return 结果
     */
    public int updateProcurementAnswer(ProcurementAnswer procurementAnswer);

    /**
     * 删除客服问答
     * 
     * @param id 客服问答主键
     * @return 结果
     */
    public int deleteProcurementAnswerById(Long id);

    /**
     * 批量删除客服问答
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProcurementAnswerByIds(Long[] ids);
}
